{extend name="admin@public:base" /}
{block name="main-row-content"}
<div class="page-header">
	<h3 class="widget-title grey lighter">
		<i class="ace-icon fa fa-leaf green"></i>
		系统设置
	</h3>
</div><!-- /.page-header -->
<div class="row">
    <div class="builder-tabs builder-form-tabs mb-20" style="margin-left:20px">
        <ul class="nav nav-tabs">
            <li class="active"><a href="javascript:void(0)">本地插件</a></li>
       </ul>
    </div>
	<div class="alert alert-block alert-success" style="margin:0px 20px;margin-top:30px;">
			<button type="button" class="close" data-dismiss="alert">
				<i class="ace-icon fa fa-times"></i>
			</button>

			<i class="ace-icon fa fa-check green"></i>

			<strong>温馨提示：</strong>
				可在线安装、卸载、禁用、启用插件，同时支持本地安装。
	</div>
	<div class="builder formbuilder-box panel-body">
    <div>
    	{foreach name="addons" item="vo"}
	        <div class="col-sm-4 col-xs-6 extension-item">
	            <div class="plugin-item">
	                <div class="col-sm-3 col-xs-3 item-logo view-app-detail" data-name="userTools" data-type="plugin" style="cursor: pointer;">
	                    <img class="plugin-logo" src="__ROOT__/{$vo.img}"/>
	                </div>
	                <div class="col-sm-9 col-xs-9 pr-0">
	                    <h4>
	                        <span class="view-app-detail" data-name="userTools" data-type="plugin" style="cursor: pointer;">
	                            {$vo.title}
	                        </span>
	                    </h4>
	                    <p class="item-desc">
	                        {$vo.description}
	                    </p>
	                    <div class="item-metas">
	                        <p class="text-muted f13">
	                            作者：
	                            <a href="http://www.eacoo123.com/appstore_plugin/userTools" target="_blank">
	                                {$vo.author}
	                            </a>
	                        </p>
	                        <p class="text-muted f13">
	                            版本：{$vo.version}
	                        </p>
	                    </div>
	                </div>
	                <p class="oh w pt-10">
	                   {if condition="$vo.uninstall eq 1"}
	                    <span class="fr">
	                        <a class="btn btn-primary btn-radius btn-xs ajax_post_a"  href="{:url('admin/Addons/install',array('name'=>$vo.name))}">
	                            安装
	                        </a>
	                    </span>
	                    {elseif condition="$vo.status eq 1 && $vo.uninstall eq 0" /}
	                       <span class="text-muted">
	                        {$vo.addtime|get_time_format}
	                    </span>
	                    <span class="fr">
	                    	{if condition="$vo.has_adminlist eq 1"}
	                        <a class="btn btn-purple btn-radius btn-xs" data-pjax="false" href="{:url('admin/Addons/config',array('name'=>$vo.name))}">
	                            设置
	                        </a>
	                        {/if}
	                        <a class="btn btn-danger btn-radius btn-xs ajax_posta" data-id="{$vo.id}" href="{:url('admin/Addons/status')}">
	                            禁用
	                        </a>
	                        <a class="btn btn-warning btn-radius btn-xs ajax_del_tz" data-id="{$vo.id}"  href="{:url('admin/Addons/uninstall',array('name'=>$vo.name))}" title="准备卸载">
	                            卸载
	                        </a>
	                    </span>
	                    {elseif condition="$vo.status eq 0 && $vo.uninstall eq 0" /}
	                       <span class="text-muted">
	                        {$vo.addtime|get_time_format}
	                    </span>
	                    <span class="fr">
	                    	{if condition="$vo.has_adminlist eq 1"}
	                        <a class="btn btn-purple btn-radius btn-xs" data-pjax="false" href="{:url('admin/Addons/config',array('name'=>$vo.name))}">
	                            设置
	                        </a>
	                        {/if}
	                        <a class="btn btn-success btn-radius btn-xs ajax_posta"  data-id="{$vo.id}" href="{:url('admin/Addons/status')}">
	                            启用
	                        </a>
	                        <a class="btn btn-warning btn-radius btn-xs ajax_del_tz" data-id="{$vo.id}"  href="{:url('admin/Addons/uninstall',array('name'=>$vo.name))}" title="准备卸载">
	                            卸载
	                        </a>
	                    </span>
	                    {/if}
	                </p>
	            </div>
	        </div>
        {/foreach}
    </div>
</div>
  <!--row-->
</div><!-- /.row -->
{/block}
   </body>
</html>